	var base_url = '<?php echo base_url()?>';
$("document").ready(function(){
	$("#signin_form").live("change",function(){
		var email = $("#admin_email_signin").val();
                var user= $("#admin_tendn_signin").val();
		var pass = $("#admin_matkhau_signin").val();
		$.ajax({
			url : base_url+"index.php/admin/admin/signin",
			type : "POST",
			data : "user="+user+"email="+email+"&pass="+pass,
			dataType : "json",
			beforeSend : function(){
				$("#msg").html("LOADDING....");
			},
		    success : function(obj){
			    if(!obj.status) {
		    		$("#msg").html(obj.mgs);
			    } else {
			    	hideLoadding();
                               alert(obj.mgs);
			       window.location.reload(true);
			    }
		    }
		})
	})
});
